package clothes.tools.dao.impl;

import clothes.tools.dao.AdministratorDao;
import clothes.tools.pojo.Administrators;

public class AdministratorDaoImpl extends BaseDao implements AdministratorDao {
    @Override
    public Administrators queryByAdmins(String username) {
        String sql="select username,password from administrator where username=?" ;
        return queryForOne(sql, Administrators.class,username);
    }

    @Override
    public Administrators queryByAdminsAndPassword(String username, String password) {

        String sql="select username,password from administrator where username=? and password=?" ;
        return queryForOne(sql,Administrators.class,username,password);
    }
}
